#include "stdafx.h"
#include "IsoformsSelecter.h"

CIsoformSelecter::CIsoformSelecter(void)
{
}

CIsoformSelecter::~CIsoformSelecter(void)
{
}

vector<CIsoformInfo> selectByCDsScore(vector<CIsoformInfo> candidate_sets, int maxSelectedIsoformNo)
{
	vector<CIsoformInfo> selectedIsoform;
	sort(candidate_sets.begin(), candidate_sets.end(), CIsoformInfoCompByCDSscore());
	for(vector<CIsoformInfo>::reverse_iterator rit = candidate_sets.rbegin();
		rit != candidate_sets.rend(); ++rit) {
			if((int)selectedIsoform.size() >= maxSelectedIsoformNo) {
				break;
			}
			selectedIsoform.push_back(*rit);
	}
	return(selectedIsoform);
}

vector<CIsoformInfo> selectByCDsScoreUtilJunctionsCovered\
	(vector<CIsoformInfo> candidate_sets, CJunctions j, int maxSelectedIsoformNo) 
{
	vector<CIsoformInfo> selectedIsoform;
	return(selectedIsoform);
}